<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/template/template.xhtml">
	<ui:define name="content">

		<h:form id="form">
			<p:inputText value="#{eventController.name}" />
			<br />
			<p:commandButton value="Say Hello"
				action="#{eventController.sayHello}" update="msg, log" />
			<p:commandButton value="Say Goodbye"
				action="#{eventController.sayGoodbye}" update="msg, log" />
			<br />
			<br />
			<p:outputLabel id="msg" value="#{eventController.message}" />
			<br />
			<br />
			<p:outputLabel id="log" value="#{eventController.log}" />
		</h:form>

	</ui:define>
</ui:composition>
</html>